<!DOCTYPE html>
{% load i18n %}
<html>
	<head>
		
		<title>{%trans "Share your location" %}</title>		
		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="/static/styles/styles.css" />
		<script src="/static/scripts/basePage.js" type="text/javascript"></script>
		{%block head%}{%endblock%}
	</head>

	<body style="background: #CCCC99 url('/static/images/circle-field-blue.gif');">

		<div id="wrapper">								
			<div id="menu-container">	
				<ul id="menu">
					<li><a href="/">{% trans "Main" %}</a></li>
					<li><a href="/home">{% trans "My location" %}</a></li>
					<li><!--<a href="/live">{% trans "Live" %}</a></li>-->
					<li><a href="/download">{%trans "Downloads" %}</a></li>
					<li><a href="http://groups.google.ru/group/sharelocation">{%trans "Project Discussion" %}</a></li>
					
					{% if request.user.is_authenticated %}
					
						<li class="right" ><a href="/accounts/logout/">{% trans "Logout" %}</a></li>
						<li class="right" ><b>{{ request.user.username }}</b></li>
					
					{% else %}
						<li class="right" ><a href="/accounts/login/">{% trans "Login" %}</a></li>
						<li class="right" ><a href="/accounts/register/">{% trans "Register" %}</a></li>
					{% endif %}	
				</ul>
			</div>	
			
			<div id="content">
				{% block main %} {% endblock %}
			</div>	
			
			<div id="bottom" >
					
				{% get_current_language as LANGUAGE_CODE %}
				{% get_available_languages as LANGUAGES %}					
				
				{% for lng in LANGUAGES %}
					{% ifequal LANGUAGE_CODE lng.0 %}
						<b>{{lng.1}}</b>
					{% else %}
						<a href="javascript: basePage.changeLanguage('{{lng.0}}')">{{lng.1}}</a>
					{% endifequal %}
					|
				{% endfor %}

				{% ifequal page "localize" %}
						<b>{% trans "Help in localization" %}</b>
					{% else %}
						<a href="/localize">{% trans "Help in localization" %}</a>
				{% endifequal %}
				
			
				&copy; <a href="http://dmitko.ru/">{% trans "Dmitry Kopylov" %}</a> {% now "Y" %}
			</div>
			
		</div>

		<script type="text/javascript">
			var basePage = initBasePage();
			var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
			document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));		
			try {
			var pageTracker = _gat._getTracker("UA-8565641-2");
			pageTracker._trackPageview();
			} catch(err) {}
		</script>
		
	</body>
</html>